<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>pbl-shaders: KduneeShaders.GeneralShader Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">pbl-shaders
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespace_kdunee_shaders.html">KduneeShaders</a>      </li>
      <li class="navelem"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html">GeneralShader</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a>  </div>
  <div class="headertitle">
<div class="title">KduneeShaders.GeneralShader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Ogólna klasa shaderów.  
 <a href="class_kdunee_shaders_1_1_general_shader.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for KduneeShaders.GeneralShader:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_kdunee_shaders_1_1_general_shader.png" usemap="#KduneeShaders.GeneralShader_map" alt=""/>
  <map id="KduneeShaders.GeneralShader_map" name="KduneeShaders.GeneralShader_map">
<area href="class_kdunee_shaders_1_1_bump_shader.html" title="Shader mapowania nierówności - algorytmem Normal, bądź Parallax mapping." alt="KduneeShaders.BumpShader" shape="rect" coords="0,56,211,80"/>
<area href="class_kdunee_shaders_1_1_magic_shader.html" title="Shader animowanej magicznej powłoki." alt="KduneeShaders.MagicShader" shape="rect" coords="221,56,432,80"/>
<area href="class_kdunee_shaders_1_1_phong_blinn_shader.html" title="Shader oświetlenia Phonga-Blinna." alt="KduneeShaders.PhongBlinnShader" shape="rect" coords="442,56,653,80"/>
<area href="class_kdunee_shaders_1_1_rim_shader.html" title="Shader oświetlenia krawędziowego." alt="KduneeShaders.RimShader" shape="rect" coords="663,56,874,80"/>
<area href="class_kdunee_shaders_1_1_unlit_shader.html" title="Shader nie uwzględniający oświetlenia." alt="KduneeShaders.UnlitShader" shape="rect" coords="884,56,1095,80"/>
<area href="class_kdunee_shaders_1_1_water_shader.html" title="Animowany shader wody." alt="KduneeShaders.WaterShader" shape="rect" coords="1105,56,1316,80"/>
</map>
 </div></div>

<p><a href="class_kdunee_shaders_1_1_general_shader-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5b47f468a6d687c1a43ee8f3f50ce35f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a5b47f468a6d687c1a43ee8f3f50ce35f">GeneralShader</a> (Effect prototype)</td></tr>
<tr class="memdesc:a5b47f468a6d687c1a43ee8f3f50ce35f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Konstruktor shadera.  <a href="#a5b47f468a6d687c1a43ee8f3f50ce35f"></a><br/></td></tr>
<tr class="memitem:a47952cdd1aa8a5834abdf62d55bf1fcb"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a47952cdd1aa8a5834abdf62d55bf1fcb">Update</a> (float delta, Vector3 eye, Vector3 light)</td></tr>
<tr class="memdesc:a47952cdd1aa8a5834abdf62d55bf1fcb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Aktualizacja shadera.  <a href="#a47952cdd1aa8a5834abdf62d55bf1fcb"></a><br/></td></tr>
<tr class="memitem:a9d42d153045fa9cc58d7282ff0ef23a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a9d42d153045fa9cc58d7282ff0ef23a7">SetMatrices</a> (Matrix obj2world, Matrix world2projection)</td></tr>
<tr class="memdesc:a9d42d153045fa9cc58d7282ff0ef23a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ustaw macierze, niezbędne do określenia przekształcenia obiektu.  <a href="#a9d42d153045fa9cc58d7282ff0ef23a7"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a22b081513dd46075ed2b85fe2f823ae6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a22b081513dd46075ed2b85fe2f823ae6">Transparency</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a22b081513dd46075ed2b85fe2f823ae6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Czy uwzględniony będzie kanał alpha z tekstury.  <a href="#a22b081513dd46075ed2b85fe2f823ae6"></a><br/></td></tr>
<tr class="memitem:aae26e2093d8cd54c19e3b4135abecbd3"><td class="memItemLeft" align="right" valign="top">Texture2D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#aae26e2093d8cd54c19e3b4135abecbd3">Diffuse</a><code> [get, set]</code></td></tr>
<tr class="memdesc:aae26e2093d8cd54c19e3b4135abecbd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tekstura diffuse.  <a href="#aae26e2093d8cd54c19e3b4135abecbd3"></a><br/></td></tr>
<tr class="memitem:a59c433880f1aa4ed36059b25e076f402"><td class="memItemLeft" align="right" valign="top">Vector4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a59c433880f1aa4ed36059b25e076f402">MaterialAmbient</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a59c433880f1aa4ed36059b25e076f402"><td class="mdescLeft">&#160;</td><td class="mdescRight">Współczynnik ambient materiału.  <a href="#a59c433880f1aa4ed36059b25e076f402"></a><br/></td></tr>
<tr class="memitem:a8a549f7de0e21f409463740d658f0e67"><td class="memItemLeft" align="right" valign="top">Vector4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a8a549f7de0e21f409463740d658f0e67">MaterialDiffuse</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a8a549f7de0e21f409463740d658f0e67"><td class="mdescLeft">&#160;</td><td class="mdescRight">Współczynnik diffuse materiału.  <a href="#a8a549f7de0e21f409463740d658f0e67"></a><br/></td></tr>
<tr class="memitem:a1bfeededbf43bc898b2a9bba7083f420"><td class="memItemLeft" align="right" valign="top">Vector4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a1bfeededbf43bc898b2a9bba7083f420">MaterialSpecular</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a1bfeededbf43bc898b2a9bba7083f420"><td class="mdescLeft">&#160;</td><td class="mdescRight">Współczynnik specular materiału.  <a href="#a1bfeededbf43bc898b2a9bba7083f420"></a><br/></td></tr>
<tr class="memitem:ae1c6643eb3f7c6231e09d75339fb6d8f"><td class="memItemLeft" align="right" valign="top">Vector4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#ae1c6643eb3f7c6231e09d75339fb6d8f">LightAmbient</a><code> [get, set]</code></td></tr>
<tr class="memdesc:ae1c6643eb3f7c6231e09d75339fb6d8f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Współczynnik ambient światła.  <a href="#ae1c6643eb3f7c6231e09d75339fb6d8f"></a><br/></td></tr>
<tr class="memitem:a78c99174af93881424dd3bb578e7c055"><td class="memItemLeft" align="right" valign="top">Vector4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a78c99174af93881424dd3bb578e7c055">LightDiffuse</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a78c99174af93881424dd3bb578e7c055"><td class="mdescLeft">&#160;</td><td class="mdescRight">Współczynnik diffuse światła.  <a href="#a78c99174af93881424dd3bb578e7c055"></a><br/></td></tr>
<tr class="memitem:a3fa8d2917f61ca29bd3e96a58c8f0a72"><td class="memItemLeft" align="right" valign="top">Vector4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a3fa8d2917f61ca29bd3e96a58c8f0a72">LightSpecular</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a3fa8d2917f61ca29bd3e96a58c8f0a72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Współczynnik specular światła.  <a href="#a3fa8d2917f61ca29bd3e96a58c8f0a72"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Ogólna klasa shaderów. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a5b47f468a6d687c1a43ee8f3f50ce35f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a5b47f468a6d687c1a43ee8f3f50ce35f">KduneeShaders.GeneralShader.GeneralShader</a> </td>
          <td>(</td>
          <td class="paramtype">Effect&#160;</td>
          <td class="paramname"><em>prototype</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Konstruktor shadera. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">prototype</td><td>Shader, który zostanie użyty</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9d42d153045fa9cc58d7282ff0ef23a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a9d42d153045fa9cc58d7282ff0ef23a7">KduneeShaders.GeneralShader.SetMatrices</a> </td>
          <td>(</td>
          <td class="paramtype">Matrix&#160;</td>
          <td class="paramname"><em>obj2world</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Matrix&#160;</td>
          <td class="paramname"><em>world2projection</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ustaw macierze, niezbędne do określenia przekształcenia obiektu. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">obj2world</td><td>Macierz transformacji obiektu do świata</td></tr>
    <tr><td class="paramname">world2projection</td><td>Macierz transformacji świata do powierzchni rzutowania</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a47952cdd1aa8a5834abdf62d55bf1fcb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a47952cdd1aa8a5834abdf62d55bf1fcb">KduneeShaders.GeneralShader.Update</a> </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>eye</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Vector3&#160;</td>
          <td class="paramname"><em>light</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Aktualizacja shadera. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">delta</td><td>Ilość czasu, jaki upłynął</td></tr>
    <tr><td class="paramname">eye</td><td>Pozycja obserwatora</td></tr>
    <tr><td class="paramname">light</td><td>Pozycja światła</td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_kdunee_shaders_1_1_water_shader.html#aa357f6b16a3ebd1a7314a0eef2cbcd27">KduneeShaders.WaterShader</a>, and <a class="el" href="class_kdunee_shaders_1_1_magic_shader.html#aa5675fd513dd62f2fc3cbea63294841e">KduneeShaders.MagicShader</a>.</p>

</div>
</div>
<hr/><h2>Property Documentation</h2>
<a class="anchor" id="aae26e2093d8cd54c19e3b4135abecbd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Texture2D <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#aae26e2093d8cd54c19e3b4135abecbd3">KduneeShaders.GeneralShader.Diffuse</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Tekstura diffuse. </p>

</div>
</div>
<a class="anchor" id="ae1c6643eb3f7c6231e09d75339fb6d8f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector4 <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#ae1c6643eb3f7c6231e09d75339fb6d8f">KduneeShaders.GeneralShader.LightAmbient</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Współczynnik ambient światła. </p>

</div>
</div>
<a class="anchor" id="a78c99174af93881424dd3bb578e7c055"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector4 <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a78c99174af93881424dd3bb578e7c055">KduneeShaders.GeneralShader.LightDiffuse</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Współczynnik diffuse światła. </p>

</div>
</div>
<a class="anchor" id="a3fa8d2917f61ca29bd3e96a58c8f0a72"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector4 <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a3fa8d2917f61ca29bd3e96a58c8f0a72">KduneeShaders.GeneralShader.LightSpecular</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Współczynnik specular światła. </p>

</div>
</div>
<a class="anchor" id="a59c433880f1aa4ed36059b25e076f402"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector4 <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a59c433880f1aa4ed36059b25e076f402">KduneeShaders.GeneralShader.MaterialAmbient</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Współczynnik ambient materiału. </p>

</div>
</div>
<a class="anchor" id="a8a549f7de0e21f409463740d658f0e67"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector4 <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a8a549f7de0e21f409463740d658f0e67">KduneeShaders.GeneralShader.MaterialDiffuse</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Współczynnik diffuse materiału. </p>

</div>
</div>
<a class="anchor" id="a1bfeededbf43bc898b2a9bba7083f420"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector4 <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a1bfeededbf43bc898b2a9bba7083f420">KduneeShaders.GeneralShader.MaterialSpecular</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Współczynnik specular materiału. </p>

</div>
</div>
<a class="anchor" id="a22b081513dd46075ed2b85fe2f823ae6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="class_kdunee_shaders_1_1_general_shader.html#a22b081513dd46075ed2b85fe2f823ae6">KduneeShaders.GeneralShader.Transparency</a><code> [get, set]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Czy uwzględniony będzie kanał alpha z tekstury. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Users/kdunee/Documents/Visual Studio 2010/Projects/ShaderApp/KduneeShaders/GeneralShader.cs</li>
</ul>
</div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Mon Apr 23 2012 20:12:46 for pbl-shaders by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.0
</small></address>

</body>
</html>
